package com.sk.coin.sys.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单记录
 * </p>
 *
 * @author Administrator
 * @since 2022-02-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_issue")
public class WorkIssue implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 用户id(提问用户id)
     */
    @TableField("user_id")
    @ApiModelProperty(value = "用户id(提问用户id)")
    private Long userId;

    /**
     * 回复人id
     */
    @TableField("answer_user_id")
    @ApiModelProperty(value = "回复人id")
    private Long answerUserId;

    /**
     * 回复人名称
     */
    @TableField("answer_name")
    @ApiModelProperty(value = "回复人名称")
    private String answerName;

    /**
     * 工单内容
     */
    @TableField("question")
    @ApiModelProperty(value = "工单内容")
    private String question;

    /**
     * 回答内容
     */
    @TableField("answer")
    @ApiModelProperty(value = "回答内容")
    private String answer;

    /**
     * 状态：1-待回答；2-已回答；
     */
    @TableField("status")
    @ApiModelProperty(value = "状态：1-待回答；2-已回答；")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "created", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date created;

    /**
     * 修改时间
     */
    @TableField(value = "last_update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date lastUpdateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "创建工单的用户名称")
    public String username = "测试用户";


    @TableField(exist = false)
    @ApiModelProperty(value = "创建工单的用户真实名称")
    private String realName = "测试用户";
}
